Skip to main content

Calculate File Hash

Calculate File Hash (v1.0.0)

Calculate File Hash and place it in a variable

View Source

Inputs:

Name: Algorithm 

Type: string

Tooltip:

Select the algorithm for the file hash.
Name: Absolute path to the file 

Type: string

Tooltip:

Set the absolute path to the file to which the hash will be calculated. Variable templating is allowed.

https://docs.tdarr.io/docs/plugins/flow-plugins/basics#plugin-variable-templating

For Example,

Original file
{{{ args.originalLibraryFile._id }}}

Working file
{{{ args.inputFileObj._id }}}
Name: Variable 

Type: string

Tooltip:

Variable to set.

Example
fileHash

You can then check this in the 'Check Flow Variable' plugin {{{args.variables.user.fileHash}}}
against another value such as {{{args.variables.user.otherFileHash}}}

Outputs:

1: Continue to next plugin